package org.framework.define.bean.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the tbl_task_product_limit database table.
 * 
 */
@Embeddable
public class TblTaskProductLimitPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	@Column(name="biz_account", unique=true, nullable=false, length=25)
	private String bizAccount;

	@Column(name="product_id", unique=true, nullable=false, length=25)
	private String productId;

	public TblTaskProductLimitPK() {
	}
	public String getBizAccount() {
		return this.bizAccount;
	}
	public void setBizAccount(String bizAccount) {
		this.bizAccount = bizAccount;
	}
	public String getProductId() {
		return this.productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TblTaskProductLimitPK)) {
			return false;
		}
		TblTaskProductLimitPK castOther = (TblTaskProductLimitPK)other;
		return 
			this.bizAccount.equals(castOther.bizAccount)
			&& this.productId.equals(castOther.productId);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.bizAccount.hashCode();
		hash = hash * prime + this.productId.hashCode();
		
		return hash;
	}
}